package com.online.teaching.module.common.blog.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ClassName : BlogAddDTO  //类名
 * @Description :   //描述
 * @Author : YG  //作者
 * @Date: 2020-11-04 19:38  //时间
 */
@Data
public class BlogAddDTO {

    @ApiModelProperty(value = "所在的教课课程id")
    @NotNull(message = "请输入正确的课程id")
    private Integer teachesId;

    @ApiModelProperty(value = "博客标题")
    @NotNull(message = "请输入正确的博客标题")
    private String blogTitle;

    @ApiModelProperty(value = "博客内容")
    @NotNull(message = "请输入正确的博客内容")
    private String blogContent;

}
